package com.qidianit.mes.pro.service;

import com.github.pagehelper.PageInfo;
import com.qidianit.mes.pojo.Result;
import com.qidianit.mes.pojo.Workstation;

import java.util.List;

/**
 * @Author: YKYB
 * @Date: 2025/10/1 15:03
 * @Description:
 */
public interface WorkstationService {
    PageInfo<Workstation> selectList(Workstation workstation, Integer pageNum, Integer pageSize);

    /*根据编码查询工作站*/
    Result<Workstation> getByCode(String code);

    /* 新增*/
    Result<Workstation> add(Workstation workstation);

    /*更新工作站*/
    Result<Workstation> update(Workstation workstation);

    /*根据id删除*/
    Result<Workstation> deleteById(Long id);

    /*批量逻辑删除*/
    Result<Void> batchDelete(List<Long> ids);

    /* 修改状态*/
    Result<Workstation> changeStatus(Long id, Integer status);

    /*接口8：根据车间ID查询工作站列表*/
    Result<List<Workstation>> getByWorkshopId(Long workshopId);
}
